<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		body{width: 1200px;margin:0 auto;font-family: "Simsun",Tahoma,Arial,sans-serif;font-size: 14px;color:#000;}
		.mydetail{margin-top: 20px;}
		table {width: 100%;	background-color: transparent;	border-collapse: collapse;border-spacing: 0;}
		.mydetail th, .mydetail td {border: 1px solid #e2e2e2;}
		.mydetail td,.mydetail th {	text-align: center;	padding: 10px 5px;}
		.tal{text-align: left;}
		.tac{text-align: center;}
	</style>
</head>
<body>
	<h2 class="tac">供应商列表</h2>
	<a href="index.php" style="margin-left:10px;">返回列表</a>
	<div class="mydetail">	
		<div style="height:20px;">
			<form method="POST">
				<button style="height:27px;float:right;margin-left:10px">查询</button>
				<input type="text" name="company_name" placeholder="请输入公司名称" style="width:200px;height:21px;float:right">
			</form>
		</div>
		<br>
		<table>
			<tbody>
				<tr style="background: #eee">
					<th width="5%">序号</th>
					<th width="20%">供应商名称</th>
					<th width="10%">供应商代码</th>
					<th width="25%">地址</th>
					<th width="10%">联系人</th>
					<th width="10%">联系电话</th>
					<th width="10%">邮箱</th>
				</tr>
			<?php 
		
			for ($i = 0 ; $i < count($infoAll) ; $i++) {

			 ?>
				<tr>
					<td><?php echo $i+1 ?></td>
					<td><?php echo $infoAll[$i]['company_name'] ?></td>
					<td><?php echo $infoAll[$i]['company_data'] ?></td>
					<td><?php echo $infoAll[$i]['company_address'] ?></td>
					<td><?php echo $infoAll[$i]['names'] ?></td>
					<td><?php echo $infoAll[$i]['phone'] ?></td>
					<td><?php echo $infoAll[$i]['email'] ?></td>
				</tr>
				<?php 
				} ?>
			
			</tbody>
		</table>
		<form action="" method='post'>
		<div style="text-align: right;margin-top: 50px">
			
			<button type="submit" name="export" value="1" id="export">导出excel</button>
               
		</div>
		</form>
	</div>
</body>

</html>